/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[欢迎加盟知启蒙，一起邂逅框架梦]
 * 
 * https://www.zhiqim.com/gitcan/zhiqim/zhiqim_account.htm
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.zhiqim.account.dbo.user;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 用户交易支付宝退款 对应表《USER_TRADE_ALIPAY_REFUND》
 */
@AnAlias("UserTradeAlipayRefund")
@AnNew
@AnTable(table="USER_TRADE_ALIPAY_REFUND", key="TRADE_ID", type="InnoDB")
public class UserTradeAlipayRefund implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="USER_ID", type="long", notNull=true)    private long userId;    //1.用户编号
    @AnTableField(column="TRADE_ID", type="long", notNull=true)    private long tradeId;    //2.退款编号
    @AnTableField(column="TRADE_ORIG_ID", type="long", notNull=true)    private long tradeOrigId;    //3.原始交易编号
    @AnTableField(column="TRADE_NO", type="string,64", notNull=true)    private String tradeNo;    //4.支付宝交易号
    @AnTableField(column="TRADE_AMOUNT", type="int", notNull=true)    private int tradeAmount;    //5.交易的订单金额，单位：分
    @AnTableField(column="REFUND_AMOUNT", type="int", notNull=true)    private int refundAmount;    //6.交易的退款金额，单位：分
    @AnTableField(column="REFUND_STATUS", type="string,32", notNull=true)    private String refundStatus;    //7.退款状态
    @AnTableField(column="REFUND_REASON", type="string,64", notNull=false)    private String refundReason;    //8.退款原因

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getUserId()
    {
        return userId;
    }

    public void setUserId(long userId)
    {
        this.userId = userId;
    }

    public long getTradeId()
    {
        return tradeId;
    }

    public void setTradeId(long tradeId)
    {
        this.tradeId = tradeId;
    }

    public long getTradeOrigId()
    {
        return tradeOrigId;
    }

    public void setTradeOrigId(long tradeOrigId)
    {
        this.tradeOrigId = tradeOrigId;
    }

    public String getTradeNo()
    {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo)
    {
        this.tradeNo = tradeNo;
    }

    public int getTradeAmount()
    {
        return tradeAmount;
    }

    public void setTradeAmount(int tradeAmount)
    {
        this.tradeAmount = tradeAmount;
    }

    public int getRefundAmount()
    {
        return refundAmount;
    }

    public void setRefundAmount(int refundAmount)
    {
        this.refundAmount = refundAmount;
    }

    public String getRefundStatus()
    {
        return refundStatus;
    }

    public void setRefundStatus(String refundStatus)
    {
        this.refundStatus = refundStatus;
    }

    public String getRefundReason()
    {
        return refundReason;
    }

    public void setRefundReason(String refundReason)
    {
        this.refundReason = refundReason;
    }

}
